package com.xzx.shop_front_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.persistence.Column;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 我的足迹实体类
 */
@Component
@Data
@TableName("shop_my_footprints")
public class FootPrint {
    @TableId(type = IdType.AUTO)
    private Long id;
    @Column(name = "member_id")
    @JsonProperty("member_id")
    private int memberId;
    @Column(name = "created_time")
    private int createdTime;
    @JsonProperty("goods_id")
    @Column(name = "goods_id")
    private int goodsId;

    @TableField(exist = false)
    private String goodsName;

    @TableField(exist = false)
    private String goodsImg;

    @TableField(exist = false)
    private Double goodsPrice;

    @TableField(exist = false)
    private String strDate;

    public String getStrDate() {
        return strDate;
    }

    public void setStrDate(String strDate) {
        this.strDate = strDate;
    }

    public String getGoodsName() {
        return goodsName;
    }


    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public int getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(int createdTime) {
        this.createdTime = createdTime;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    @Override
    public String toString() {
        return "FootPrint{" +
                "id=" + id +
                ", memberId=" + memberId +
                ", createdTime=" + createdTime +
                ", goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsImg='" + goodsImg + '\'' +
                ", goodsPrice=" + goodsPrice +
                '}';
    }
}
